package org.forever.view
{
	import flash.events.MouseEvent;
	
	import mx.logging.ILogger;
	import mx.logging.Log;
	
	import spark.components.BorderContainer;

	/**折线用到的矩形点类*/
	public class BrokenLineRect extends BorderContainer
	{
		
		private static var _log:ILogger = Log.getLogger("org.forever.view.BrokenLineRect");
		private var _firstEdge:BrokenLineEdge;
		private var _secondEdge:BrokenLineEdge;
		
		private var _rect_w:Number = 6; 
		
		public function BrokenLineRect()
		{
		}
		
		/**更新第二条边的位置*/
		public function updateSecondEdgePosition():void{
			if(_secondEdge != null){
				_secondEdge.drawLine();
				_log.debug("不断刷新第二条边的位置....");
			}
		}
		
		/**更新第一条边的位置*/
		public function updateFirstEdgePosition():void{
			if(_firstEdge != null){
				_firstEdge.drawLine();
				_log.debug("不断刷新第一条边的位置....");
			}
		}
		
		
		public function updateFirstEdge():void{
		  if(_firstEdge != null ){
			  
		  }
		}
		
		/**矩形关联的第一条边(左边)*/
		public function get firstEdge():BrokenLineEdge
		{
			return _firstEdge;
		}

		/**
		 * @private
		 */
		public function set firstEdge(value:BrokenLineEdge):void
		{
			_firstEdge = value;
		}

		/**矩形关联的第二条边(右边)*/
		public function get secondEdge():BrokenLineEdge
		{
			return _secondEdge;
		}

		/**
		 * @private
		 */
		public function set secondEdge(value:BrokenLineEdge):void
		{
			_secondEdge = value;
		}

	}
}